//
//  UIView+Extension.h
//  AmountBody
//
//  Copyright © 2018年 RCMTM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <pop/pop.h>
@interface UIView (Extension)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) IBInspectable CGFloat borderWidth;
@property (nonatomic, assign) IBInspectable UIColor *borderColor;
@property (nonatomic, assign) IBInspectable CGFloat cornerRadius;

/**
 *  水平居中
 */
- (void)alignHorizontal;
/**
 *  垂直居中
 */
- (void)alignVertical;
/**
 *  判断是否显示在主窗口上面
 *
 *  @return 是否
 */
- (BOOL)isShowOnWindow;

- (UIViewController *)parentController;

- (POPBasicAnimation *)startScaleAnimationWithScaleX:(CGFloat)scaleX scaleY:(CGFloat)scaleY completionBlock: (VoidBlock)completionBlock;
@end
